package com.shierke.Ume.ui.activity.explore

import android.content.Context
import android.os.Bundle
import androidx.recyclerview.widget.StaggeredGridLayoutManager
import com.shierke.Ume.R
import com.shierke.Ume.base.BaseNoTitleActivity
import com.shierke.Ume.ui.adapter.explore.ExploreUserHomeAdapter
import com.shierke.Ume.util.click
import com.shierke.Ume.util.startActivity
import kotlinx.android.synthetic.main.activity_user_pricipal.*

/**
 * Create by Ybx
 * on 2020-10-15
 * Desribe:
 *
 *
 */
class ExploreUserPrincipalActivity : BaseNoTitleActivity() {

    companion object {
        fun startActivity(context: Context) {
            context.startActivity<ExploreUserPrincipalActivity>()
        }
    }


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContentView(R.layout.activity_user_pricipal)

        StatusBarUtils.setStatusBarTransparentAndFullScreen(this)

        follow.click {
            ExploreUserFansListActivity.startActivity(this)
        }



        recycle.layoutManager = object :
            StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL) {
            override fun canScrollVertically(): Boolean {
                return false
            }
        }
        val adapter = ExploreUserHomeAdapter()
        recycle.adapter = adapter
    }


}